package com.xsprite.managesys.log;

import org.apache.log4j.Logger;


public class LogManager {
	
	private static LogManager instance;
	CommunicationLogFactory communicationLogFactory;
	Logger mylog = Logger.getLogger(LogManager.class);
	
	private LogManager(){
		communicationLogFactory = new CommunicationLogFactory();
	}
	
	public static LogManager getInstance(){
		if(instance == null){
			instance = new LogManager();
		}
		return instance;
	} 
	
//	public void logAll(String log, String userid){
//		communicationLogFactory.log(log, userid);
//		mylog.info("userid=" + userid + log);
//	}
	
	public void log4j(String log){
		mylog.info(log);
	}
}
